package com.neusoft.neuiotms.dcom.service;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.auth.common.bean.UserBean;
import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcom.dto.InspectionTaskDTO;

public interface InspectionTaskService {

    List<InspectionTaskDTO> index(Searchable searchable);

    Page<InspectionTaskDTO> page(Searchable searchable, Pageable pageable, final UserBean user);

    //    InspectionRuleDTO create(final InspectionRuleDTO dto, final UserBean user);

    InspectionTaskDTO update(final Long id, final InspectionTaskDTO dto);

    InspectionTaskDTO submit(final Long id, final InspectionTaskDTO dto, final UserBean user);

    InspectionTaskDTO detail(final Long id);

    void delete(final Long id);

    void claim(final Long id, UserBean user);

    Workbook download(final Searchable searchable);
}
